﻿using System.Collections.Generic;
using ShopB2C.Entity;

namespace ShopB2C.Interfaces {
    /// <summary>
    /// 模块接口
    /// </summary>
    public interface IModule {

        #region Module

        /// <summary>
        /// 添加新的分类模块
        /// </summary>
        /// <param name="cme">ClassModuleEntity</param>
        void ModuleAppend(ModuleEntity cme);
        /// <summary>
        /// 修改分类模块
        /// </summary>
        /// <param name="cme">ClassModuleEntity</param>
        void ModuleUpdate(ModuleEntity cme);
        /// <summary>
        /// 删除分类模块
        /// </summary>
        /// <param name="moduleIds">分类模块 id 字符串，“,”分隔</param>
        void ModuleDelete(string moduleIds);
        /// <summary>
        /// 获取指定 id 的分类模块
        /// </summary>
        /// <param name="moduleId">分类模块 id</param>
        /// <returns>ClassModuleEntity</returns>
        ModuleEntity GetClassModuleById(int moduleId);
        /// <summary>
        /// 获取分类模块列表
        /// </summary>
        /// <param name="pageSize">每页显示记录数</param>
        /// <param name="pageIndex">当前页号</param>
        /// <param name="pageSize">接收返回的总页数</param>
        /// <returns>List</returns>
        List<ModuleEntity> GetClassModuleList(int pageSize, int pageIndex, out int pageCount);

        #endregion

    }
}
